package com.st.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.st.common.utils.PageUtils;
import com.st.mall.product.entity.CategoryEntity;
import com.st.mall.product.vo.Catalogs2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author fg
 * @email f@163.com
 * @date 2023-02-26 20:46:23
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    List<CategoryEntity> returnTree();

    void removeLogicByIds(List<Long> asList);


    /**
     * 关联更新
     * @param category CategoryEntityd对象
     */
    void updateMore(CategoryEntity category);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catalogs2Vo>> getCatalogJson();
}

